package com.muyu.common.core.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 支付渠道
 */
@Getter
public enum PayChannel {

    /**
     * 支付宝
     */
    ALI(1, "支付宝","AliPayService"),

    /**
     * 微信
     */
    WECHAT(2, "微信","WeChatService");


    PayChannel(int code, String name, String serviceName) {
        this.code = code;
        this.name = name;
        this.serviceName = serviceName;
    }

    @EnumValue
    @JsonValue
    private final int code;

    private final String name;

    private final String serviceName;
}
